package edu.gatech.spacetraderteam3.model;

/**
 * Different government types - each Planet should have 1 at all times.
 * 
 * @author Aaron
 * @version 0.1
 * 
 */
public enum Government {
	ANARCHY,
	CAPITALIST,
	COMMUNIST,
	CONFEDERACY,
	CORPORATE,
	CYBERNETIC,
	DEMOCRACY,
	DICTATORSHIP,
	FACIST,
	FEUDAL,
	MILITARY,
	MONARCHY,
	PACIFIST,
	SOCIALIST,
	SATORI,
	TECHNOCRACY,
	THEOCRACY;

	/**
	 * Generates a random government
	 * @return a random government
	 */
	public static Government random() {
		return values()[(int) (Math.random() * values().length)];
	}

	/**
	 * Gets the string representation of the government type
	 * @return the string representation of the government type 
	 */
	public String toString() {
		return name().toLowerCase();
	}
}
